* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding-top: 40px;  /* Space for nav */
    box-sizing: border-box;
}

#top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    color: #0f0;
    font-family: monospace;
    z-index: 10;
}

.nav-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-item:hover {
    background-color: rgba(15, 255, 15, 0.1);
}

.nav-item.active {
    background-color: rgba(15, 255, 15, 0.2);
}

#gameCanvas {
    position: absolute;
    top: 40px;  /* Adjust for nav height */
    left: 0;
    width: 100%;
    height: calc(100% - 40px);  /* Subtract nav height */
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #0f0;
    font-family: monospace;
}

#wordmark {
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
    opacity: 0.7;
}

#modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal .modal-content {
    background-color: #000;
    color: #0f0;
    padding: 40px;
    border: 2px solid #0f0;
    text-align: center;
    font-family: monospace;
    max-width: 500px;
    max-height: 80vh;  
    overflow-y: auto;  
    scrollbar-width: thin;  
    scrollbar-color: #0f0 #000;  
}

#modal .modal-content::-webkit-scrollbar {
    width: 10px;
}

#modal .modal-content::-webkit-scrollbar-track {
    background: #000;
}

#modal .modal-content::-webkit-scrollbar-thumb {
    background-color: #0f0;
    border-radius: 5px;
}

#modal .modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(15, 255, 15, 0.7);
}

#modal .close-modal {
    color: #0f0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modal.hidden {
    display: none;
}

.damaged-document {
    background-color: rgba(15, 255, 15, 0.05);
    border: 1px solid rgba(15, 255, 15, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    font-family: monospace;
}

.redacted {
    color: #0f0;
    opacity: 0.7;
    letter-spacing: 2px;
    line-height: 1.6;
}

.archiver-note {
    font-style: italic;
    color: #0f0;
    opacity: 0.8;
    text-align: right;
}

.forum-post {
    background-color: rgba(15, 255, 15, 0.05);
    border: 1px solid rgba(15, 255, 15, 0.2);
    padding: 15px;
    margin-bottom: 15px;
    font-family: monospace;
}

.forum-post h3 {
    color: #0f0;
    margin-bottom: 10px;
}

.post-author {
    color: #0f0;
    opacity: 0.7;
    margin-bottom: 10px;
}

.post-content {
    color: #0f0;
    line-height: 1.6;
}

.forum-replies {
    margin-top: 15px;
    border-top: 1px solid rgba(15, 255, 15, 0.2);
    padding-top: 10px;
}

.reply {
    margin-bottom: 10px;
}

.reply-author {
    color: #0f0;
    opacity: 0.7;
}

.interloper-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.interloper-image {
    max-width: 80%;
    max-height: 400px;
    object-fit: contain;
    opacity: 0.9;
}

.interloper-document {
    background-color: rgba(15, 255, 15, 0.05);
    border: 1px solid rgba(15, 255, 15, 0.2);
    padding: 20px;
    font-family: monospace;
    color: #0f0;
    line-height: 1.6;
}

.interloper-document h3 {
    color: #0f0;
    margin-bottom: 15px;
    text-align: center;
}

.interloper-document p {
    margin-bottom: 10px;
}

.interloper-document em {
    display: block;
    text-align: right;
    margin-top: 20px;
}